﻿#region Usings
using System;
using BK.BL;
using BK.Entities;
using BK.WebSite.AppCode;
#endregion

namespace BK.WebSite.Controls
{
    public partial class UserEditControl : BkDataEditControl<UserEntity, Users>
    {
        #region Instance Methods
        protected override void DoGetObjectFromEditor(UserEntity entity)
        {
            entity.FirstName = tbxFirstName.Text;
            entity.LastName = tbxLastName.Text;
            entity.Email = tbxEmail.Text;
            entity.Password = tbxPassword.Text;
            entity.Login = tbxLogin.Text;
        }

        protected override void DoPutObjectToEditor(UserEntity entity)
        {
            tbxFirstName.Text = entity.FirstName;
            tbxLastName.Text = entity.LastName;
            tbxEmail.Text = entity.Email;
            tbxPassword.Text = entity.Password;
            tbxConfirmPassword.Text = entity.Password;
            tbxLogin.Text = entity.Login;
        }

        protected override void PrepareEditor()
        {
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }
        #endregion
    }
}